<?php
$title = 'Upload files';
$this->headTitle($title);
?>
<div class="hero-unit">
<h1><?php echo $this->escapeHtml($title); ?></h1>
<?php
$form = $this->form;
$form->setAttribute('action', $this->url('upload'));
$form->prepare();

echo $this->form()->openTag($form); ?>

<div class="form-element">
    <?php $element = $form->get('image-file'); ?>
    <?php echo $this->formLabel($element); ?>
    <?php echo $this->formFile($element); ?>
    <?php echo $this->formElementErrors($element); ?>
</div>

<p>
<?php echo $this->formSubmit($form->get('submit')); ?>
</p>

<?php echo $this->form()->closeTag(); ?>
</div>